package com.jurassic.demo.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author pan_jin
 * @Description: $
 * @Date: 2022/7/12 11:40
 * @Version: 1.0.0
 * @Slogan: 梦想还是要有的万一实现了呢
 */
@Component
@PropertySource("app.properties")
public class AppConfiguration {
    @Value("${application.name:test}")
    private String name;

    @Value("${server.port:8848}")
    private int sport;

    public String getName() {
        return name;
    }

    public int getSport() {
        return sport;
    }
}
